<?php require_once 'Lib/main.php';
	$categoryDAO = new Dao_CategoryDAO();
	$listCategory = $categoryDAO->getAllCategory();
?>

<div class="box">
	<div class="title">
		<h2>Nhóm sản phẩm</h2>
		<img class="bullet" src="css/images/bullet.png" alt="small grey bullet" />
	</div>
	
	<ul>
		<?php 
			/* @var $category Model_Category */
			foreach ($listCategory as $key => $category):
		?>
			<li><a title="Cabinet" href="category.php?id=<?php echo $category->getId()?>"><?php echo $category->getName()?></a></li>
		
		<?php 
			endforeach; 
		?>
	</ul>
	
</div>
